<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<img src="" alt="" id="img">

<script src="../../src/image/utils-watermarkBase64.js"></script>

<script>
    const base64Str = '';
    watermarkBase64(base64Str, {'text': '我的名字'}).then((base64String) => {
        document.getElementById('img').src = base64String;
    }).catch((e) => {
        console.error(e);
    })
</script>
</body>
</html>